﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using TestEngine;

namespace TestWindowsGame1
{
    class menuScene : Scene
    {
        Actor _actor;
        bool leaveScene;

        public menuScene(ContentManager content, GraphicsDeviceManager Graphics)
        {
            Content = content;
            _graphics = Graphics;
            _actor = new Actor();
            _actor.anim = new Animation(Content.Load<Texture2D>("15"), 1, 1, 1, 1);
            _actor.position = new Vector2(200, 200);
            leaveScene = false;
        }
        public override void update(int d_time)
        {
            _actor.update(d_time);

        }
        public override void draw(SpriteBatch sb)
        {
            sb.Draw(_actor.anim.ani_Text, _actor.position, Color.White);
            base.draw(sb);
        }
        public override void hnd_input()
        {
            MouseState mState = new MouseState();
            mState = Mouse.GetState();
            if (mState.RightButton == ButtonState.Pressed && !leaveScene)
            {
                SceneManager.scenesToAdd.Add(new inGameScene(Content, _graphics));
                readyToExit = true;
                leaveScene = true;
            }
            base.hnd_input();
        }
    }
}
